home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / info-service / gopher / Unix / gopher+1.2b4 / object / Wait.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-11  |  1.2 KB  |  51 lines

  1. /********************************************************************
  2.  * lindner
  3.  * 3.1.1.1
  4.  * 1993/02/11 18:03:04
  5.  * /home/mudhoney/GopherSrc/CVS/gopher+/object/Wait.h,v
  6.  * $Status: $
  7.  *
  8.  * Paul Lindner, University of Minnesota CIS.
  9.  *
  10.  * Copyright 1991, 1992 by the Regents of the University of Minnesota
  11.  * see the file "Copyright" in the distribution for conditions of use.
  12.  *********************************************************************
  13.  * MODULE: Wait.h
  14.  * Routines that portably define wait3()
  15.  *********************************************************************
  16.  * Revision History:
  17.  * Wait.h,v
  18.  * Revision 3.1.1.1  1993/02/11  18:03:04  lindner
  19.  * Gopher+1.2beta release
  20.  *
  21.  * Revision 1.1  1992/12/10  23:27:52  lindner
  22.  * gopher 1.1 release
  23.  *
  24.  *
  25.  *********************************************************************/
  26.  
  27.  
  28. /*
  29.  * A header file to portably include the stuff for doing wait3() etal
  30.  */
  31.  
  32. #if defined(_AIX)  /** AIX needs bsd signals.  **/
  33. #define _BSD
  34. #endif
  35.  
  36. #ifdef M_XENIX
  37. #define __SCO_WAIT3__
  38. #endif
  39.  
  40. #include <sys/ioctl.h>
  41. #include <sys/wait.h>
  42. #include <signal.h>
  43.  
  44. #if defined(_SEQUENT_) || defined(POSIXWAIT) || defined(_POSIX_SOURCE)
  45. typedef int Portawait;
  46. #define wait3(a,b,c) waitpid(-1,a,c)
  47. #else
  48. typedef union wait Portawait;
  49. #endif
  50.  
  51.